package com.mrguo.entity.bsd;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * @author 郭成兴
 * @ClassName Goodssku
 * @Description sku表
 * @date 2019/11/13 1:59 PM
 * @updater 郭成兴
 * @updatedate 2019/11/13 1:59 PM
 */

@Data
@Table(name = "bsd_goods_temp_detail")
public class GoodsTempDetail {

    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    @Column(name = "id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @Column(name = "temp_id")
    private Long tempId;

    @JsonSerialize(using = ToStringSerializer.class)
    @Column(name = "sku_id")
    private Long skuId;

    @JsonSerialize(using = ToStringSerializer.class)
    @Column(name = "unit_id")
    private Long unitId;

    private BigDecimal quantity;

    @Column(name = "unit_multi")
    private BigDecimal unitMulti;

    @Transient
    private String code;

    @Transient
    private String name;

    @Transient
    @Column(name = "unit_name")
    private String unitName;
}